
namespace ZR.Model.Dto.Business.ProductionControl
{
    /// <summary>
    /// PLC配置表查询对象
    /// </summary>
    public class PlcConfigQueryDto : PagerInfo 
    {
        public DateTime? BeginTime { get; set; }
        public DateTime? EndTime { get; set; }

        public string PrimaryCode { get; set; }
        /// <summary>
        /// 专为API提供的接口大于0时生效
        /// </summary>
        public int Limit { get; set; }
        /// <summary>
        /// 从这个系统编号开始
        /// </summary>
        public long StartSeq { get; set; }
    }

    /// <summary>
    /// PLC配置表输入输出对象
    /// </summary>
    public class PlcConfigDto
    {
        [Required(ErrorMessage = "Id不能为空")]
        public int Id { get; set; }

        public string ProductionLineCode { get; set; }

        public string WorkstationCode { get; set; }

        public string PlcType { get; set; }

        public string PlcAddress { get; set; }

        public string CpuType { get; set; }

        public int? SlotNumber { get; set; }

        public int? RackNumber { get; set; }

        public string IsEnabled { get; set; }

        public DateTime? CreationTime { get; set; }

        public string CreatorName { get; set; }



        [ExcelColumn(Name = "PLC类型")]
        public string PlcTypeLabel { get; set; }
    }
}